package com.milotnt.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.milotnt.pojo.EmployeeEntity;

import java.util.List;

public interface EmployeeMapper extends BaseMapper<EmployeeEntity> {

    //查询所有员工
    List<EmployeeEntity> findAll();

    //根据员工账号删除员工
    Boolean deleteByEmployeeAccount(Long employeeAccount);

    //添加新员工
    Boolean insertEmployee(EmployeeEntity employee, String employeeStatus);

    //根据员工账号修改会员信息
    Boolean updateMemberByEmployeeAccount(EmployeeEntity employee, String employeeStatus);

    //根据员工账号查询员工
    List<EmployeeEntity> selectByEmployeeAccount(Long employeeAccount);

    //查询员工数
    Integer selectTotalCount();

    List<EmployeeEntity> selectByStaff(String staff);
}
